.toc {
  overflow-y: auto;
  width: 230px;
  max-height: 400px;
  position: fixed;
  top: 50vh;
  right: 0px;
  background: var(--favoriteBg);
  border-radius: 8px;
  z-index: 100;
  transition: all 1s;
}
.toc::before {
  content: '🎪 目录';
  font-size: 24px;
  line-height: 40px;
  margin-left: 70.5px;
}
.toc::-webkit-scrollbar {
  display: none;
}

.toc > .toc-list {
  overflow: hidden;
  position: relative;
}

.toc > .toc-list li {
  color: var(--fontColor);
  list-style: none;
  line-height: 25px;
}

.toc .toc-list {
  margin: 0;
  padding: 4px 4px 4px 22px;
}

.toc a.toc-link {
  color: currentColor;
  height: 100%;
  text-decoration: none;
}

.toc .is-collapsible {
  max-height: 1000px;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

.toc .is-collapsed {
  max-height: 0;
}

.toc .is-active-link {
  font-weight: 700;
  color: var(--white) !important;
}

.toc .is-active-li {
  border-radius: 8px;
  background-color: var(--green2);
  padding: 3px 0 3px 8px;
}

.toc .toc-link::before {
  background-color: var(--favoriteBg);
  content: '';
  display: inline-block;
  height: inherit;
  left: 0;
  margin-top: -1px;
  position: absolute;
  width: 2px;
}

.toc .is-active-link::before {
  content: '\e673';
  font-family: iconfont;
  color: var(--red);
  font-size: 20px;
}
